package adapterPattern;


/**
 * @program: course
 * @author: lsn
 * @create: 2024-04-13 17:20
 * @description: 角色：适配器
 */
public class TreeElectricAdapter implements ThreeElectricOutlet{
    TwoElectricOutlet twoElectricOutlet;

    public TreeElectricAdapter(TwoElectricOutlet twoElectricOutlet) {
        this.twoElectricOutlet = twoElectricOutlet;
    }

    @Override
    public void connectElectricCurrnent() {
        twoElectricOutlet.connectElectricCurrent();
    }

}

